package com.heima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.mapper.TaskMapper;
import com.heima.pojo.domain.Task;
import com.heima.pojo.vo.TaskAllVo;
import com.heima.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {

    @Autowired
    private TaskMapper taskMapper;

    @Override
    public List<TaskAllVo> getTotal(LocalDateTime start, LocalDateTime end) {

        return taskMapper.getTotal(start,end);
    }
}
